package com.zmj.sy.mom.srv.aps.bean.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Comment("订单")
@Getter
@Setter
@TableName("tb_order")
public class Order extends BaseEntity {

    @Comment("订单编号")
    private String orderCode;

    @Comment("订单名称")
    private String orderName;

    @Comment("施工号")
    private String constructNo;

    @Comment("PLMID")
    private String plmId;

    @Comment("客户ID")
    private Integer customerId;

    @Comment("客户编号")
    private String customerCode;

    @Comment("客户名称")
    private String customerName;

    @Comment("产品编码")
    private String materCode;

    @Comment("产品名称")
    private String materName;

    @Comment("订单数量")
    private Integer orderQty;

    @Comment("完工数量")
    private Integer finishQty;

    @Comment("订单导入类型 1ERP 3外揽订单 4工装订单 2MBD 5标准架型 6Excel导入")
    private Integer orderType;

    @Comment("订单状态 1.已同步 2.拆单中 3.待排产 4.排产中 5.已排产 6.已发布 7.套料中 8.已开工 9.订单完成  10 订单关闭")
    private Integer orderStatus;

    @Comment("推送状态 0无需套料 1.未推送 2.推送中 3.推送成功 4.推送失败")
    private Integer pushStatus;

    @Comment("推送状态 推送类型 1.海克斯康 2.兰特克")
    private Integer pushType;

    @Comment("订单优先级")
    private Integer orderPriority;

    @Comment("订单权重")
    private Integer orderWeight;

    @Comment("工厂编号")
    private String factoryCode;

    @Comment("下单日期")
    private LocalDateTime orderDateTime;

    @Comment("计划开始时间")
    private LocalDateTime planStartDateTime;

    @Comment("计划结束时间")
    private LocalDateTime planEndDateTime;

    @Comment("实际开始时间")
    private LocalDateTime actualStartDateTime;

    @Comment("实际结束时间")
    private LocalDateTime actualEndDateTime;

    @Comment("交付日期")
    private LocalDateTime deliveryDateTime;

    @Comment("锁定状态 1未锁 2锁定")
    private Integer locked;

    @Comment("待排产列表的顺序")
    private Integer seq;

    @Comment("批次列表")
    private Integer batchId;

    @Comment("流水号")
    private Integer serialNum;

    @Comment("流水号")
    private String serialCode;

    @Comment("发布人")
    private String publishUserCode;

    @Comment("发布时间")
    private String publishDateTime;

    @Comment("订单后缀")
    private String suffix;

    @Comment("架型")
    private String frameType;

    @Comment("策划月份")
    private String plannedMonth;

    @Comment("版本")
    private Integer version;

    @Comment("最后拉取时间")
    private LocalDateTime lastPullDateTime;

    @Comment("产线Id")
    private Integer lineId;

    @Comment("拆分号")
    private String splitCode;
}
